<%@ page language="java" pageEncoding="UTF-8" isErrorPage="true" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory"%>
<%@ include file="/common/taglibs.jsp"%>
<page:applyDecorator name="open">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>500 - 系统内部错误</title>
   <script type="text/javascript">
    function gobackMain(){  
    var topWindow = window.parent||window;
     	topWindow.location.href="<c:url value='/'/>";
    }
</script>
</head>

<body id="error">
  <h1>系统发生内部错误.</h1>
<%
	Throwable ex = null;
	if (exception != null){
		ex = exception;
	}
	if (request.getAttribute("javax.servlet.error.exception") != null){
		ex = (Throwable) request.getAttribute("javax.servlet.error.exception");
	}
	//记录日志
	Logger logger = LoggerFactory.getLogger("500.jsp");
	logger.error(ex.getMessage(), ex);
	out.println(ex);
%>
<p>
   请马上与系统管理员联系，您可以选择返回到 <a href="JavaScript:history.back();">上一步</a>, 或者返回到 <a href="JavaScript:gobackMain();">首页面</a>，
</p>

</body>
</html>
</page:applyDecorator>
